package com.neusoft.bizcore.auth.dto;

import java.util.ArrayList;
import java.util.List;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.dto.AbstractDTO;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class AuthOganizationDTO extends AbstractDTO {

    private static final long serialVersionUID = 1L;

    /** 组织名 */
    @NotBlank(message = "组织名不能为空")
    @Length(max = 255, message = "组织名不能超过{max}位")
    private String name;

    /** 组织代码 */
    @NotBlank(message = "组织代码不能为空")
    @Length(max = 255, message = "组织代码不能超过{max}位")
    private String code;

    private String parent;

    private List<AuthUserDTO> users = new ArrayList<>();
}
